package com.hongxun.project.assets.pDevice.domain;

import com.hongxun.project.assets.bByq.domain.BByq;
import com.hongxun.project.assets.iLine.domain.ILine;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hongxun.framework.web.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 配电设备采集表 p_device
 * 
 * @author hongxun
 * @date 2019-03-19
 */
public class PDevice extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/**  */
	private String id;
	/** 所属设备ID */
	private String bDiveceId;
	/** 点位ID */
	private String pointId;
	/** 线路ID */
	private String lineId;
	/** 变压器ID */
	private String byqId;
	/** 大类 */
	private String bigType;
	/** 中类 */
	private String midType;
	/** 标签 */
	private String lable;
	/** 名称 */
	private String name;
	/** 规格型号 */
	private String modle;
	/** 物质编码 */
	private String code;
	/** 单位 */
	private String unit;
	/** 价格 */
	private BigDecimal price;
	/** 条形码 */
	private String barCode;
	/** 技术参数 */
	private String techParameter;
	/** 发布状态 */
	private Date addDate;
	/** 新增人 */
	private Integer addUser;
	/** 更新人 */
	private Integer updateUser;
	/** 更新时间 */
	private Date updateDate;
	/** 数据状态 */
	private String datastate;
	/** 任务ID */
	private String taskId;

	private List<BByq> bByqList;

	private List<ILine> iLineList;

	public void setId(String id) 
	{
		this.id = id;
	}

	public String getId() 
	{
		return id;
	}
	public void setBDiveceId(String bDiveceId) 
	{
		this.bDiveceId = bDiveceId;
	}

	public String getBDiveceId() 
	{
		return bDiveceId;
	}
	public void setPointId(String pointId) 
	{
		this.pointId = pointId;
	}

	public String getPointId() 
	{
		return pointId;
	}
	public void setLineId(String lineId) 
	{
		this.lineId = lineId;
	}

	public String getLineId() 
	{
		return lineId;
	}
	public void setByqId(String byqId) 
	{
		this.byqId = byqId;
	}

	public String getByqId() 
	{
		return byqId;
	}
	public void setBigType(String bigType) 
	{
		this.bigType = bigType;
	}

	public String getBigType() 
	{
		return bigType;
	}
	public void setMidType(String midType) 
	{
		this.midType = midType;
	}

	public String getMidType() 
	{
		return midType;
	}
	public void setLable(String lable) 
	{
		this.lable = lable;
	}

	public String getLable() 
	{
		return lable;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}
	public void setModle(String modle) 
	{
		this.modle = modle;
	}

	public String getModle() 
	{
		return modle;
	}
	public void setCode(String code) 
	{
		this.code = code;
	}

	public String getCode() 
	{
		return code;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public void setBarCode(String barCode)
	{
		this.barCode = barCode;
	}

	public String getBarCode() 
	{
		return barCode;
	}
	public void setTechParameter(String techParameter) 
	{
		this.techParameter = techParameter;
	}

	public String getTechParameter() 
	{
		return techParameter;
	}
	public void setAddDate(Date addDate) 
	{
		this.addDate = addDate;
	}

	public Date getAddDate() 
	{
		return addDate;
	}
	public void setAddUser(Integer addUser) 
	{
		this.addUser = addUser;
	}

	public Integer getAddUser() 
	{
		return addUser;
	}
	public void setUpdateUser(Integer updateUser) 
	{
		this.updateUser = updateUser;
	}

	public Integer getUpdateUser() 
	{
		return updateUser;
	}
	public void setUpdateDate(Date updateDate) 
	{
		this.updateDate = updateDate;
	}

	public Date getUpdateDate() 
	{
		return updateDate;
	}
	public void setDatastate(String datastate) 
	{
		this.datastate = datastate;
	}

	public String getDatastate() 
	{
		return datastate;
	}
	public void setTaskId(String taskId) 
	{
		this.taskId = taskId;
	}

	public String getTaskId() 
	{
		return taskId;
	}

	public List<BByq> getbByqList() {
		return bByqList;
	}

	public void setbByqList(List<BByq> bByqList) {
		this.bByqList = bByqList;
	}

	public List<ILine> getiLineList() {
		return iLineList;
	}

	public void setiLineList(List<ILine> iLineList) {
		this.iLineList = iLineList;
	}

	public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bDiveceId", getBDiveceId())
            .append("pointId", getPointId())
            .append("lineId", getLineId())
            .append("byqId", getByqId())
            .append("bigType", getBigType())
            .append("midType", getMidType())
            .append("lable", getLable())
            .append("name", getName())
            .append("modle", getModle())
            .append("code", getCode())
            .append("barCode", getBarCode())
            .append("techParameter", getTechParameter())
            .append("addDate", getAddDate())
            .append("addUser", getAddUser())
            .append("updateUser", getUpdateUser())
            .append("updateDate", getUpdateDate())
            .append("datastate", getDatastate())
            .append("taskId", getTaskId())
            .toString();
    }
}
